import request from '@/utils/request'

// 创建录入单子管理
export function createFinanceMonad(data) {
  return request({
    url: '/team/finance-monad/create',
    method: 'post',
    data: data
  })
}

// 更新录入单子管理
export function updateFinanceMonad(data) {
  return request({
    url: '/team/finance-monad/update',
    method: 'put',
    data: data
  })
}

// 删除录入单子管理
export function deleteFinanceMonad(id) {
  return request({
    url: '/team/finance-monad/delete?id=' + id,
    method: 'delete'
  })
}

/** 批量删除录入单子管理 */
export function deleteFinanceMonadList(ids) {
  return request({
    url: `/team/finance-monad/delete-list?ids=${ids.join(',')}`,
    method: 'delete'
  })
}

// 获得录入单子管理
export function getFinanceMonad(id) {
  return request({
    url: '/team/finance-monad/get?id=' + id,
    method: 'get'
  })
}

// 获得录入单子管理分页
export function getFinanceMonadPage(params) {
  return request({
    url: '/team/finance-monad/page',
    method: 'get',
    params
  })
}
// 导出录入单子管理 Excel
export function exportFinanceMonadExcel(params) {
  return request({
    url: '/team/finance-monad/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}